package org.zkoss.zk.ui;

import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Include;
import org.zkoss.zul.Tabbox;
import org.zkoss.zul.Tabpanel;


public class HomeWindow extends GenericForwardComposer {
	Tabbox tabbox;
	
	 public void onSelect() {
         Tabpanel item = tabbox.getSelectedPanel();
         if(item != null && item.getId().equals("coursepanel")) {
             Include inc = (Include)Path.getComponent("/homeWnd/courseContent");
             inc.setSrc("courseTab.zul");
         }
         
     }
	
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		
	}
	


}
